package com.adou.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.adou.demo.entity.User;
import com.adou.demo.mapper.UserMapper;
import com.adou.demo.service.UserService;
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper userMapper;
	
	public User findByName(String name) {
		return userMapper.findByName(name);
	}

	public int insert(String name, Integer age) {
		return userMapper.insert(name, age);
	}

}
